package ru.timofeyco.justfeelbetter.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

public class DayDrills implements Serializable{
	private ArrayList<Drill> drillsList;
	private Date date;
	private float productivityPercent;
	
	public ArrayList<Drill> getDrillsList() {
		if (drillsList == null) {
			this.drillsList = new ArrayList<Drill>();
		}
		return drillsList;
	}
	
	public void setDrillsList(ArrayList<Drill> drillsList) {
		this.drillsList = drillsList;
	}
	
	public Date getDate() {
		return date;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
	
	public float getProductivityPercent() {
		return productivityPercent;
	}

	public void setProductivityPercent(float productivityPercent) {
		this.productivityPercent = productivityPercent;
	}

	public void addDrill(Drill newDrill) {
		if (drillsList == null) {
			this.drillsList = new ArrayList<Drill>();
		}
		this.drillsList.add(newDrill);
	}
}
